import request from "@/utils/request";


const API_BASE_URL = 'http://127.0.0.1:9999';

//查询带分页功能
export const allUserMessage = (page) => {
    return request.post(`${API_BASE_URL}/user/message/allUserMessage`, page);
};
//删除信息
export const deleteById = (id) => {
    return request.post(`${API_BASE_URL}/user/message/deleteById`,  id );
};
//修改or新增用户信息
export const updateUserById = (user) => {
    return request.post(`${API_BASE_URL}/user/message/insertOrUpdate`,  user);
};
//修改or新增用户信息
export const deleteByIds = (users) => {
    return request.post(`${API_BASE_URL}/user/message/deleteByIds`,  users);
};
